package com.bbg.amyam.web.util.menu;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.bbg.amyam.domain.model.School;

public class MenuUtil {
	

	public static List<MenuItem> getSchoolMenus(){
		List<MenuItem> menus = MenuContainer.getSchoolMenus();
		return menus;
	}
	
	public static MenuDescriptor getSchoolMenudescriptor(School currentSchool,
			String currentViewName, String[] grantedRoles) {
		List<MenuItem> menus=getSchoolMenus();
		MenuDescriptor descriptor=new MenuDescriptor(menus, grantedRoles,currentSchool.getShortName(), currentViewName);
		return descriptor;
	}

}
